package com.itdfq.loginuser.controller;

import com.itdfq.common.pojo.Result;
import com.itdfq.loginuser.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author GodChin
 * @date 2022/2/24 10:23
 * @email 909256107@qq.com
 */
@RestController
@RequestMapping("/lock")
public class RedisLockTestController {
    @Autowired
    private RedisService lockTestService;

    @GetMapping("/submit3")
    public Result submit3() {
        return lockTestService.lockTest(123456);
    }
}
